package com.example.springboot.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot.entity.Exhibition;
import com.example.springboot.mapper.ExhibitionMapper;



@Service
public class ExhibitionService extends ServiceImpl<ExhibitionMapper,Exhibition> {

    @Autowired
    ExhibitionMapper exhibitionMapper;

    public List<Exhibition> selectByPlate(String plate) {
        QueryWrapper<Exhibition> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("plate",plate);
        return exhibitionMapper.selectList(queryWrapper);
    }

    
}